package com.xxx.controller;

import com.xxx.common.Result;
import com.xxx.pojo.Email;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/email")
public class EmailController {

    @PostMapping("/save")
    public Result save(@RequestBody Email email){
        log.info("email:{}",email);

        return new Result<>();
    }

}
